﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace CECB
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        public App() {


            if (true)
            {

              //  new CECB.Dashbord.DatabaseSettingWindow().ShowDialog();
                ResourceDictionary skin = new ResourceDictionary();
                skin.Source = new Uri(@"BlackTheme.xaml", UriKind.Relative);
                Application.Current.Resources.MergedDictionaries.Clear();
                Application.Current.Resources.MergedDictionaries.Add(skin);

            }
            else
            {
                ResourceDictionary skin = new ResourceDictionary();
                skin.Source = new Uri(@"BlackTheme.xaml", UriKind.Relative);
                Application.Current.Resources.MergedDictionaries.Clear();
                Application.Current.Resources.MergedDictionaries.Add(skin);
            }
            

        }


        private Boolean isSetConnectionString()
        {
            Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
            String val = config.AppSettings.Settings["SetConstring"].Value;
            if (val == "0")
            {
               
                return false;
            }
            else
                return true;



        }
    }
}
